// No programmable web.xml path yet, so put it in the right place automatically
eventGenerateWebXmlEnd = {
	packagePluginsForWar("${basedir}/web-app")
	System.setProperty("grails.server.factory", "com.tsyganok.jetty7.JettyServerFactory")
}

//eventWarStart = { arg ->
//  println "Grails-Jetty7: Project working dir is ${arg.projectWorkDir}"
//  Ant.delete(file:"${arg.projectWorkDir}/stage/WEB-INF/lib/jetty-*.jar")
////  if (grailsEnv == "production") {
////    println "Removing jetty jars"
////    Ant.delete(file:"${arg.stagingDir}/WEB-INF/lib/jetty-*.jar")
////  }
//}